﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Text.Json;
using System.Text.Json.Serialization;
using JsonSerializationWithNewTonSoft.Entity;
using JsonSerializationWithNewTonSoft.Tools;
using System.Threading.Tasks;
using System.Net;
namespace JsonSerializationWithSystemTxtJSON
{
    class Program
    {
      async  static Task Main(string[] args)
        {
       var result1 = await RubbishCategoryHelper.GetAllAsync();
       Console.WriteLine(result1);
          //  post请求的例子
            //var  result = await RubbishCategoryHelper.SearchByNameAsync("小龙虾");
            //if (result == null)
            //{
            //    Console.WriteLine("请求失败");
            //}
            //else
            //{
            //    foreach (var item in result)
            //    {
            //        Console.WriteLine(item.ToString());
            //    }
            //}
        }
    }
}
